# -*- coding: utf-8 -*-
'''
Created on 5 янв. 2014

@author: av
'''

class ServiceInfo():
    '''
    classdocs
    '''
    #Ідентифікація обмінного файлу
    FileID=None
    FormatVersion=None
    ReceiverName=None
    ReceiverIdentifier=None
    Software=None
    SoftwareVersion=None
    FileDate=None
    FileGUID=None
    #xsd схема для проверки
    xsdsheme=None
    
    def saveToXML(self,root):
        pass

    def craetFromXML(self,root):

        path = root.find('AdditionalPart/ServiceInfo')
        self.FileID=path.findtext('FileID')
        self.FormatVersion=path.findtext('FormatVersion')
        self.Software=path.findtext('Software')
        self.SoftwareVersion=path.findtext('SoftwareVersion')
        #TODO: FileDate=Non FileGUID=None
        print self.FileID,  self.FormatVersion, self.ReceiverName, self.ReceiverIdentifier, self.Software, self.SoftwareVersion
    
        return self
    
    def verivy(self):
        pass